<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */
namespace App\Controller;
use App\JsonRpc\MerchantService;
use App\Middleware\AuthMiddleware;
use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\GetMapping;
use Hyperf\HttpServer\Annotation\Middleware;
use Hyperf\HttpServer\Annotation\PostMapping;
use App\Controller\BaseController;

#[Controller(prefix:"/",server:"http")]
class IndexController extends BaseController
{
    #[Inject]
    protected MerchantService $Service;

    /**
     * 新增用户数据
     */
    #[PostMapping(path: "store")]
    #[Middleware(AuthMiddleware::class)]
    public function index( )
    {
        return $this->fail("保存用户信息错误");
    }

}
